<div class="col-sm-10 col-md-9 col-lg-7">
    <form class="form-horizontal" role="form" action="{:U('Config/update')}" method="POST">
        <div class="form-group">
            <label for="name">配置标识</label>
            <input type="text" class="form-control" id="name" name="config[{$info.id}][name]" value="<if condition="isset($info['name'])">{$info.name}</if>">
        </div>
        <div class="form-group">
            <label for="title">配置标题</label>
            <input type="text" class="form-control" id="title" name="config[{$info.id}][title]" value="<if condition="isset($info['title'])">{$info.title}</if>">
        </div>

        <div class="form-group">
            <label for="group">分组</label>
            <select class="form-control" id="group" name="config[{$info.id}][group]">
                <option value="0">无分组</option>
                <volist name=":C('CONFIG_GROUP')" id="group">
                    <option  value="{$i}" <eq name="info.group" value="$i">selected="selected"</eq> >{$group}</option>
                </volist>
            </select>
        </div>

        <div class="form-group">
            <label for="type">配置类型</label>
            <select class="form-control" id="type" name="config[{$info.id}][type]">
                <option value="0" <eq name="info.type" value="0">selected=selected</eq> >数字</option>
                <option value="1" <eq name="info.type" value="1">selected=selected</eq> >字符</option>
                <option value="2" <eq name="info.type" value="2">selected=selected</eq> >文本</option>
                <option value="3" <eq name="info.type" value="3">selected=selected</eq> >数组</option>
                <option value="4" <eq name="info.type" value="4">selected=selected</eq> >枚举</option>
            </select>
        </div>
        <div class="form-group">
            <label for="value">配置值</label>
            <textarea class="form-control" id="value" name="config[{$info.id}][value]" rows="5"><if condition="isset($info['value'])">{$info.value}</if></textarea>
        </div>
        <div class="form-group">
            <label for="illustration">说明</label>
            <textarea class="form-control" id="illustration" name="config[{$info.id}][illustration]" rows="5"><if condition="isset($info['illustration'])">{$info.illustration}</if></textarea>
        </div>
        <div class="hidden">
            <input name="config[{$info.id}][id]" value="<if condition="isset($info['id'])">{$info.id}</if>">
        </div>

        <button type="submit" class="btn btn-default">提交</button>
    </form>
</div>